package com.example.springbootmybatis.domain;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @program: springboot_test
 * @description:
 * @author: Mr. Wu
 * @create: 2024-12-26 14:06
 **/
@Component
public class Account {



    private Integer id;

    private String name;

    private BigDecimal money;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Account() {
    }
    public Account(Integer id, String name, BigDecimal money) {
        this.id = id;
        this.name = name;
        this.money = money;
    }
    public Account(String name, BigDecimal money) {
        this.name = name;
        this.money = money;
    }
    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name=" + name +
                ", money=" + money +
                '}';
    }
}
